/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfy.idcp.modules.crawl.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;

import com.lczyfy.idcp.common.persistence.DataEntity;

/**
 * 爬虫目标Entity
 * @author cw
 * @version 2018-07-20
 */
public class CrawlWebMain extends DataEntity<CrawlWebMain> {
	
	private static final long serialVersionUID = 1L;
	private String title;
	private Date beginDate;		// 起始日期
	private Date endDate;		// 结束日期
	private List<CrawlWebChild> crawlWebChildList = Lists.newArrayList();	;		// 子表列表
	
	public CrawlWebMain() {
		super();
	}

	public CrawlWebMain(String id){
		super(id);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public List<CrawlWebChild> getCrawlWebChildList() {
		return crawlWebChildList;
	}

	public void setCrawlWebChildList(List<CrawlWebChild> crawlWebChildList) {
		this.crawlWebChildList = crawlWebChildList;
	}
}